package com.wjr.dao;

import com.wjr.bean.User;

import java.util.List;

/**
 * @Author: wjr
 * @Description: Dao接口类
 * @Date Created in  2020-09-01 14:00
 * @Modified By:
 */
public interface BaseUserDao {
    /**
      * @Description 从数据库中查找单个用户
      * @param user
      * @Return boolean
      * @Author wjr
      * @Date Created in 2020/9/1 14:05
      */
    boolean findUser(User user);

    /**
      * @Description 在数据库中插入一个用户
      * @param user
      * @Return boolean
      * @Author wjr
      * @Date Created in 2020/9/1 14:10
      */
    boolean insertUser(User user);

    /**
      * @Description 查询所有用户
      * @param user
      * @Return java.util.List<com.wjr.bean.User>
      * @Author wjr
      * @Date Created in 2020/9/1 14:10
      */
    List<User> findAll(User user);
}
